<?php 
/* SVN FILE: $Id$ */
/* Telefono Test cases generated on: 2009-12-06 00:12:15 : 1260073335*/
App::import('Model', 'Telefono');

class TelefonoTestCase extends CakeTestCase {
	var $Telefono = null;
	var $fixtures = array('app.telefono');

	function startTest() {
		$this->Telefono =& ClassRegistry::init('Telefono');
	}

	function testTelefonoInstance() {
		$this->assertTrue(is_a($this->Telefono, 'Telefono'));
	}

	function testTelefonoFind() {
		$this->Telefono->recursive = -1;
		$results = $this->Telefono->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Telefono' => array(
			'id'  => 1,
			'fono'  => 'Lorem ipsum dolor sit a',
			'vigencia'  => 'Lorem ipsum dolor sit ame',
			'fecha_cambio'  => 'Lorem ',
			'usuario'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>